Destroyed modal actors should be completely removed from the modal
stack automatically, including leaving modality if needed.
This allows for destroying modal dialogs without calling close().
https://bugzilla.gnome.org/show_bug.cgi?id=619955
let actorDestroyId = actor.connect('destroy', function() {
let index = _findModal(actor);
if (index >= 0)
- modalActorFocusStack.splice(index, 1);
+ popModal(actor);
});
let curFocus = global.stage.get_key_focus();
let curFocusDestroyId;